﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Cartoon="clr-namespace:CartoonViewer;assembly=CartoonViewer.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="CartoonViewer.W_CartoonViewer"
    Title="漫漫看_V2.0.0"
    Topmost="False" WindowStartupLocation="CenterScreen" ToolTip="漫漫看_V2.0.0" Loaded="Window_Loaded"
    Width="1080"   Closing="Window_Closing" BorderThickness="0" ResizeMode="NoResize"
        Height="660" Background="Transparent" AllowsTransparency="True"   
    >
   <StackPanel >
        <Border x:Name="Win" CornerRadius="5"  BorderBrush="#a5a5a5" BorderThickness="1">

            <StackPanel   HorizontalAlignment="Stretch" VerticalAlignment="Stretch"   >
                 
                    <!-- 窗口标题 begin -->
                <Canvas Height="20" x:Name="CvsTitle" Background="Transparent" 
                     VerticalAlignment="Center" 
					 MouseLeftButtonDown="CvsTitle_MouseLeftButtonDown" 
                  MouseMove="CvsTitle_MouseMove"
                  MouseLeftButtonUp="CvsTitle_MouseLeftButtonUp"  >
                	<Border CornerRadius="2" Canvas.Left="4" BorderBrush="white" BorderThickness="1">
                        <Image Source="AppIcon.ico" Height="18" Width="18" ></Image>
					</Border>
                    <TextBlock x:Name="LbTitle" Opacity="1"  DockPanel.Dock="left" VerticalAlignment="Center" TextAlignment="Center" Height="14" Canvas.Left="26" Canvas.Top="3" HorizontalAlignment="Stretch" ><Run Text="漫漫看_V2.0.0"/></TextBlock>
                    <StackPanel x:Name="PlTitleBtn" Orientation="Horizontal" Canvas.Right="0" Canvas.Top="0"  Background="Transparent"    >
                            <Button x:Name="WinBtnMin" Focusable="False" Style="{DynamicResource MinButtonStyle}" VerticalAlignment="Bottom" Width="25" Height="20" Click="WinBtnMin_Click" Clip="M0,0 L5,0 L11,0 L25,0 L25,20 L7.5,20 L5,20 L5,19.57264 L4.9212484,19.544903 C2.5089612,18.661646 0.6768837,16.57473 0.15237331,14.011512 L0.15016794,14 L0,14 L0,12.5 z"    />
                        <Button x:Name="WinBtnClose" Focusable="False" Style="{StaticResource CloseButtonStyle}"  VerticalAlignment="Bottom" Width="25" Height="20" Click="WinBtnClose_Click" Clip="M0,0 L17.5,0 L18,0 L18,0.016986579 L18.077053,0.021869317 C21.404985,0.27508774 24.125807,2.7001983 24.825226,5.8829137 L24.849495,6.0000001 L25,6.0000001 L25,7.5000001 L25,20 L18,20 L5,20 L0,20 z">
                        	              
						</Button>
						 
                         
                    </StackPanel>
                </Canvas>
                
                <!-- 窗口标题 end -->
                


                <Grid FlowDirection="LeftToRight" HorizontalAlignment="Stretch">

                    <!-- 主界面表格定义 begin -->
                    <Grid.RowDefinitions >
                        <RowDefinition Height="30" />
                        <RowDefinition Height="600"  />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <!-- 主界面表格定义 end -->

                    <!-- 按扭 begin -->
                    <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal" >
                        <Button  Height="23" HorizontalAlignment="Left" Margin="5 5"  
                    x:Name="btn_LoadCartoons" VerticalAlignment="Center" Width="89"  
                      Click="btn_LoadCartoons_Click" Background="Transparent" BorderThickness="0"  Focusable="False" Content="漫画列表"/>
                        <Button  Height="23" HorizontalAlignment="Left" Margin="5 5"  
                     VerticalAlignment="Center" Width="89"  
                     x:Name="btn_DM" Click="btn_DM_Click" Background="Transparent" BorderThickness="0"  Focusable="False" Content="下载管理"/>

                        <Button  Height="23" HorizontalAlignment="Left" Margin="5 5"  
                     VerticalAlignment="Center" Width="89"  
                     x:Name="btn_Setting" Click="btn_Setting_Click" Background="Transparent" BorderThickness="0"  Focusable="False" Content="设置"/>
                    </StackPanel>
                    <!-- 按扭 end -->

                    <!-- 漫画列表 begin-->
                    <Grid Grid.Column="0" Grid.Row="1"
                x:Name="Pl_CartoonList"  >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="165"  />
                            <RowDefinition Height="4"  />
                            <RowDefinition Height="*"  />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>

                        <ScrollViewer Grid.Column="0" Grid.Row="0" Margin="0 0" Focusable="False"
                          ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Auto" >
                            <Cartoon:CartoonListPanel x:Name="PlCartoonList"  Margin="0 0"  />
                        </ScrollViewer>

                        <GridSplitter Grid.Column="0" Grid.Row="1"  Background="#a5a5a5" Height="2" HorizontalAlignment="Stretch" Opacity="0.5"/>

                        <ScrollViewer Grid.Column="0" Grid.Row="2" Margin="0 0 2 5" 
                                      Padding="5 5 5 5" Focusable="False"
                                      ScrollViewer.HorizontalScrollBarVisibility="Hidden" 
                                      ScrollViewer.VerticalScrollBarVisibility="Auto"
                                      Background="Transparent"
                           >

                            <Cartoon:ChapterListPanel x:Name="chapterList"   Margin="0 0" />
                        </ScrollViewer>

                    </Grid>
                    <!-- 漫画列表 end-->

                    <!-- 下载管理 begin -->
                    <Cartoon:UC_DownloadPanel  x:Name="PlDownload"  Grid.Column="0" Grid.Row="1" Visibility="Hidden" Margin="0 0 5 5"/>
                    <!-- 下载管理 end -->

                </Grid>
            </StackPanel>
        </Border>
    </StackPanel>
</Window>
